<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<table align="center" class="ci-failure-info">
	<tr>
		<td class="title" align="center">故障履历(${fn:length(incedentEntities)})</td>
	</tr>
	<tr>
		<td align="right"><input type="button" value="打印" name="btnPrint" />&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
	</tr>
	<c:forEach items="${incedentEntities}" var="incident">
		<tr>
			<td><table class="comment">
					<tr style="border-top:2px solid gray;">
						<td class="header" colspan="2">发生时间： <fmt:formatDate
								value="${incident.createDate}" pattern="yyyy-MM-dd HH:mm" />
							&nbsp;&nbsp;报障人： <a href="javascript:void(0)"
							onclick="isperp.openDialog({contentUrl:'customer/user/view?id=${incident.cusUserId}'});return false;">${incident.cusUserId}</a>&nbsp;&nbsp;故障编号:
							<a href="">${incident.code}</a></td>
					</tr>

					<tr>
						<td class="tdCaption">故障标题:</td>
						<td class="tdContent">${incident.title}</td>
					</tr>
					<tr>
						<td class="tdCaption">故障描述:</td>
						<td class="tdContent">${incident.description}</td>
					</tr>
					<tr>
						<td class="tdCaption">故障原因:</td>
						<td class="tdContent">${incident.reasonAnalyze}</td>
					</tr>
					<tr>
						<td class="tdCaption">解决方案:</td>
						<td class="tdContent">${incident.solution}</td>
					</tr>
					<tr>
						<td class="buttom" colspan="2">解决人：<a href="javascript:void(0)"
							onclick="isperp.openDialog({contentUrl:'app/user/view?id=${incident.solverId}'});return false;">${incident.solverName}</a>&nbsp;&nbsp;解决时间：<fmt:formatDate
								value="${incident.solvedDate}" pattern="yyyy-MM-dd HH:mm" /></td>
					</tr>
				</table></td>
		</tr>
	</c:forEach>
</table>

